<?php

class SettingsController extends Controller
{
	public function actionIndex()
	{
		$detail = $this->createUrl('/settings/detail');
		$editIndex = $this->createUrl('/settings/editIndex');
		$this->render('index', array('detail'=>$detail, 'editIndex' => $editIndex));
	}

	// -----------------------------------------------------------
	// Uncomment the following methods and override them if needed
	/*
	public function filters()
	{
		// return the filter configuration for this controller, e.g.:
		return array(
			'inlineFilterName',
			array(
				'class'=>'path.to.FilterClass',
				'propertyName'=>'propertyValue',
			),
		);
	}

	public function actions()
	{
		// return external action classes, e.g.:
		return array(
			'action1'=>'path.to.ActionClass',
			'action2'=>array(
				'class'=>'path.to.AnotherActionClass',
				'propertyName'=>'propertyValue',
			),
		);
	}
	*/
	
	public function actionAction2(){
		$url3 = $this->createUrl('/settings/action3');
		$this->render('action2', array('url3'=>$url3));
	}
	public function actionDetail(){
		$index = $this->createUrl('/settings/index');
		$editDetail = $this->createUrl('/settings/editDetail');
		$this->render('detail', array('index' => $index, 'editDetail'=>$editDetail));
	}
	public function actionEditIndex() {
		$detail = $this->createUrl('/settings/detail');
		$this->render('editIndex', array('detail' => $detail));
	}
	public function actionEditDetail() {
		$index = $this->createUrl('/settings/index');
		$detail = $this->createUrl('/settings/detail');
		$this->render('editDetail', array('detail' => $detail, 'index' => $index));
	}
}